package com.llkj.qingnianguoxue.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 缴费明细
 */
public class ContributionsBean {
    private String date;
    private String circle_price;// 圈主所得
    private String type;// 1 加入 2 续费
    private String uid;// 成员id
    private String addtime;// 缴费时间
    private String userpic;// 成员头像
    private String username;// 成员昵称

    public String getCircle_price() {
        return circle_price;
    }

    public void setCircle_price(String circle_price) {
        this.circle_price = circle_price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getUserpic() {
        return userpic;
    }

    public void setUserpic(String userpic) {
        this.userpic = userpic;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDate() {
        try {
            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            Date d = dateFormat.parse(addtime);
            dateFormat = new SimpleDateFormat("yyyy年MM月");
            date = dateFormat.format(d);
        }catch (Exception e){}

        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
